package com.chb.microservice.provider.model;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@JsonInclude(Include.NON_NULL)
@ApiModel(value = "Product", description = "产品")
public class Product {
	@ApiModelProperty(value = "序号")
	private String proId;
	@ApiModelProperty(value = "名称")
	private String proName;
	@ApiModelProperty(value = "分类", allowableValues = "insurance,business")
	private String proCategories;
	@ApiModelProperty(value = "介绍")
	private String proDetail;
	@ApiModelProperty(value = "分类名称", allowableValues = "交强险,商业险")
	private String proCategoriesName;
	@ApiModelProperty(value = "图标")
	private String proIco;
	@ApiModelProperty
	private String proState;
	@ApiModelProperty(value = "选项类型", allowableValues = "check,select")
	private String proOptionType;
	@JsonIgnore
	@ApiModelProperty
	private String proOptions;
	@JsonIgnore
	@ApiModelProperty
	private String proFranchise;
	@ApiModelProperty(value = "选项")
	private List<Option> options;
	@ApiModelProperty(value = "报价提交参数名")
	private String api_o_parameter;
	@ApiModelProperty(value = "不计免赔报价提交参数名")
	private String api_f_parameter;
	@ApiModelProperty(value = "有不计免赔", allowableValues = "0,1")
	private String hasFranchise;
	@ApiModelProperty(value = "不计免赔")
	private List<Option> franchises;

	public Product id(String proId) {
		this.proId = proId;
		return this;
	}

	public Product state(String proState) {
		this.proState = proState;
		return this;
	}

	public Product updateState(String proId, String proState) {
		this.proId = proId;
		this.proState = proState;
		return this;
	}

	public String getProId() {
		return proId;
	}

	public void setProId(String proId) {
		this.proId = proId;
	}

	public String getProName() {
		return proName;
	}

	public void setProName(String proName) {
		this.proName = proName;
	}

	public String getProDetail() {
		return proDetail;
	}

	public void setProDetail(String proDetail) {
		this.proDetail = proDetail;
	}

	public String getProIco() {
		return proIco;
	}

	public void setProIco(String proIco) {
		this.proIco = proIco;
	}

	public String getProState() {
		return proState;
	}

	public void setProState(String proState) {
		this.proState = proState;
	}

	public String getProOptionType() {
		return proOptionType;
	}

	public void setProOptionType(String proOptionType) {
		this.proOptionType = proOptionType;
	}

	public String getProOptions() {
		return proOptions;
	}

	public void setProOptions(String proOptions) {

		this.proOptions = proOptions;
	}

	public String getProFranchise() {
		return proFranchise;
	}

	public void setProFranchise(String proFranchise) {

		this.proFranchise = proFranchise;
	}

	public List<Option> getOptions() {
		return options;
	}

	public void setOptions(List<Option> options) {

		this.options = options;
	}

	public String getHasFranchise() {
		return hasFranchise;
	}

	public void setHasFranchise(String hasFranchise) {
		this.hasFranchise = hasFranchise;
	}

	public List<Option> getFranchises() {
		return franchises;
	}

	public void setFranchises(List<Option> franchises) {

		this.franchises = franchises;
	}

	public String getProCategories() {
		return proCategories;
	}

	public void setProCategories(String proCategories) {
		this.proCategories = proCategories;
	}

	public String getProCategoriesName() {
		return proCategoriesName;
	}

	public void setProCategoriesName(String proCategoriesName) {
		this.proCategoriesName = proCategoriesName;
	}

	public String getApi_o_parameter() {
		return api_o_parameter;
	}

	public void setApi_o_parameter(String api_o_parameter) {
		this.api_o_parameter = api_o_parameter;
	}

	public String getApi_f_parameter() {
		return api_f_parameter;
	}

	public void setApi_f_parameter(String api_f_parameter) {
		this.api_f_parameter = api_f_parameter;
	}

}
